package file;

import java.io.File;

/**
 * @author liyang
 * @version 1.0
 * @package file
 * @file fileDemo.java
 * @description
 * @time 2024-03-14 12:19
 */
public class FileDemo {
    public static void main(String[] args) {
        File file1 = new File("./demo.txt");

        String name =  file1.getName();
        System.out.println(name);
        
        Long Length = file1.length();
        System.out.println(Length);

        boolean ih = file1.isHidden();
        System.out.println("是否隐藏"+ih);
    }
}
